package itdfq.ydd.Structural_Patterns.zuhe;

/**
 * @Author GocChin
 * @Date 2021/4/16 19:21
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210136  杨丹丹");
        Chai c1,c2,c3;
        Box b1,b2;
        c1=new Gift1();
        c2=new Gift2();
        b1=new Box();
        b1.add(c1);
        b1.add(c2);
        b2=new Box();
        c3=new Gift3();
        b2.add(c3);
        b2.add(b1);
        b2.chai();
    }
}
